package com.ditri.distrident.commonservice.service;

import com.ditri.distrident.common.entity.Result;
import org.springframework.stereotype.Service;

/**
 * @author: edxuanlen
 * @date: 2020-08-06 16:38
 * @version: 1.0
 **/
@Service
public interface SmsSendingService {

    /**
     * 发送手机短信验证码
     * @param phone phone number
     * @return 发送手机短信验证码状态
     */
    Result sendSms(String phone);

    /**
     * 发送注册验证码
     * @param phone phone number
     * @return 发送验证码状态
     */
    Result sendRegister(String phone);
}
